package com.wpl.service.impl;

import com.wpl.bean.Workorder;
import com.wpl.dao.WorkorderMapper;
import com.wpl.service.IOrderDetailService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 工单详情
 */
@Service
public class OrderDetailServiceImpl implements IOrderDetailService {

    @Resource
    private WorkorderMapper workorderMapper;

    /**
     * 根据id 查询
     * @param id
     * @return
     */
    @Override
    public Workorder getCustomerById(Integer id) {
        return workorderMapper.selectByPrimaryKey(id);
    }

    /**
     * 进线信息
     * @param id
     * @return
     */
    @Override
    public Workorder getInfoById(Integer id) {
        return workorderMapper.selectByPrimaryKey(id);
    }

    /**
     * 工单信息
     * @param id
     * @return
     */
    @Override
    public Workorder getWorkorderById(Integer id){
        return workorderMapper.selectByPrimaryKey(id);
    }
}
